package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGyZzhjsbmEnum {

    ZZHJSBM_YWGLY("01", "业务管理员"),

    ZZHJSBM_QDGLY("02", "渠道管理员"),

    ZZHJSBM_YWY("03", "业务员");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyZzhjsbmEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }


}
